package models

import (
	"time"
)

type InventoryType string

const (
	In  InventoryType = "IN"
	Out InventoryType = "OUT"
)

type InventoryRecordAdd struct {
	ProductID uint   `json:"product_id"`
	Quantity  int    `json:"quantity"`
	Type      string `json:"type"`
	Remark    string `json:"remark"`
	UserName  string `json:"user_name"`
}

type InventoryRecord struct {
	ID          uint      `gorm:"primaryKey" json:"id"`
	ProductID   uint      `json:"product_id"`
	Quantity    int       `json:"quantity"`
	Type        string    `gorm:"not null" json:"type"`
	GmtCreate   time.Time `json:"gmt_create"`
	GmtModified time.Time `json:"gmt_modified"`
	Remark      string    `json:"remark"`
	UserName    string    `json:"user_name"`
}
